<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/inc/taglib.inc"%>
<%@ include file="/WEB-INF/inc/script.inc"%>
<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base href="${base}">
<title>中金通 | 资产配置列表</title>

<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="font-awesome/css/font-awesome.css" rel="stylesheet">
<link href="js/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet">

<!-- FooTable -->
<!-- <link href="css/plugins/footable/footable.core.css" rel="stylesheet"> -->
<!-- Data Tables -->
<link href="css/plugins/dataTables/dataTables.bootstrap.css"
	rel="stylesheet">
<link href="css/plugins/dataTables/dataTables.responsive.css"
	rel="stylesheet">
<link href="css/plugins/dataTables/dataTables.tableTools.min.css"
	rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">

<link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">
<style>
        .detail-content{
        	font-size:15px;
        }
        .col-md-3{
  			padding-bottom: 20px;
        }
        .detail-title{
        	font-size:15px;
        	font-weight:bold;
        }
        .hr-line-dash{
	  		color: #ffffff;
	  		background-color: #ffffff;
	  		height: 1px;
	  		margin: 20px 0;
  		}
		.form-control[readonly]{
			background-color: #fff;
			opacity: 1;
			border: #FFF;
		}
		textarea {
		    resize: none;
		}
    </style>
</head>

<body>

	<div id="wrapper">

		<!-- 左侧菜单 -->
		<jsp:include page="/WEB-INF/jsp/common/main-menu.jsp"></jsp:include>

		<div id="page-wrapper" class="gray-bg">
			<div class="row border-bottom">
				<!-- 头部工具栏区 -->
				<jsp:include page="/WEB-INF/jsp/common/main-header.jsp"></jsp:include>
			</div>
			<div class="row wrapper border-bottom white-bg page-heading">
				<div class="col-lg-10">
					<h2>资产配置列表</h2>
					<ol class="breadcrumb">
						<li><a href="common/platform">Home</a></li>
						<li><a href="assetAllocation/list">资金运用</a></li>
						<li class="active"><strong>资产配置</strong></li>
					</ol>
				</div>
				<div class="col-lg-2"></div>
			</div>
			<input type="text" id="org_id" class="hidden" value="${sessionScope.security_context_user.orgId}"/>
			<div class="row" style="margin-top: 10px;">
				<div class="col-md-12">
					<div class="tabs-container">
						<ul class="nav nav-tabs">
							<li class="active"><a href="assetAllocation/list"> 资产配置列表 </a></li>
						</ul>
						<div class="tab-content">
							<div class="tab-pane active">
								<div class="panel-body">
									<div class="wrapper wrapper-content animated fadeInRight ecommerce">
											<div class="ibox-content m-b-sm">
												<form id="queryForm" method="post">
													<div class="row">
														<div class="col-sm-4">
															<div class="form-group">
																<label class="control-label" for="orderId">产品名称:</label>
																<input type="text" name="productName" value=""
																	placeholder="产品名称" class="form-control">
															</div>
														</div>
														<div class="col-sm-4">
															<div class="form-group">
																<label class="control-label" for="state">状态</label>
																 <select name="state" class="form-control m-b" tabindex="2">
																 	<option value="">全部</option>
																 	<option value="1">待审批</option>
																 	<option value="2">审批中</option>
																 	<option value="3">终审中</option>
																 	<option value="4">过终审</option>
																 	<option value="5">已投资</option>
																 </select>
															</div>
														</div>
													</div>
													<div class="row">
														<div class="col-sm-4 col-sm-offset-2">
					                                        <button class="btn btn-outline btn-default pull-right m-t-n-xs" id="cancleQuery" type="reset">重 置</button>
					                                        <div class="pull-right">&nbsp;&nbsp;&nbsp;</div>
					                                        <button class="btn btn-primary pull-right m-t-n-xs" id="queryBtn" type="button">查 询</button>
					                                    </div>
													</div>
												</form>
											</div>
										<div class="row">
											<div class="col-lg-12">
												<div class="ibox float-e-margins">
													<div class="ibox-content">
														<table id="assetAllocationEditable"
															class="table table-striped table-bordered table-hover">
															<thead>
																<tr>
																	<th>配置名称</th>
																	<th>产品名称</th>
																	<th>配资金额</th>
																	<th>提交人</th>
																	<th>提交时间</th>
																	<th>状态</th>
																	<th style="background-color: white;">操作</th>
																</tr>
															</thead>
															<tbody>
															</tbody>
														</table>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- 底部版权 -->
			<jsp:include page="/WEB-INF/jsp/common/main-footer.jsp"></jsp:include>
		</div>
	</div>
		<!-- 个人表决 -->
		<div class="modal inmodal" id="voteModal" tabindex="-1" role="dialog"
			aria-hidden="true">
			<div class="modal-dialog modal-md">
				<div class="modal-content animated fadeIn">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal">
							<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
						</button>
						<h4 class="modal-title">个人表决</h4>
					</div>
					<div class="modal-body">
						<form action="" class="ibox-content p-xl" id="voteForm">
                            <div class="row">
                            		<input type="hidden" id="eventId" value="">
									<div class="form-group">
										<div class="col-sm-3">
										<label class="detail-title">个人意见:</label>
										</div>
										<div class="col-sm-6">
										<select name="result" class="form-control m-b" tabindex="2">
										 	<option value="1" selected="selected">同意</option>
										 	<option value="2">不同意</option>
										 </select>
										</div>
									</div>
                            </div>
							<br>
							<div class="row">
									<div class="form-group">
										<div class="col-sm-3">
										<label class="detail-title">原因:</label>
										</div>
										<div class="col-sm-6">
										<textarea class="form-control" placeholder="原因" rows="10" name="suggestion"></textarea>
										</div>
									</div>
							</div>
                        </form>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
						<button type="submit" class="btn btn-primary" id="voteConfirm">确认</button>
					</div>
				</div>
			</div>
		</div>
		<!-- 决策委员会负责人审批 -->
		<div class="modal inmodal" id="approveModal" tabindex="-1" role="dialog"
			aria-hidden="true">
			<div class="modal-dialog modal-md">
				<div class="modal-content animated fadeIn">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal">
							<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
						</button>
						<h5 class="modal-title">审批结果</h5>
					</div>
					<div class="modal-body">
						<h5 class="modal-title">决策委员会成员表决情况</h5>
							<div class="row">
								<div class="col-lg-12">
									<div class="ibox float-e-margins">
										<div class="ibox-content">
											<table id="approveEditable"
												class="table table-striped table-bordered table-hover">
												<thead>
													<tr>
														<th>姓名</th> 
														<th>时间</th> 
														<th>个人表决</th>
														<th>原因</th>
													</tr>
												</thead>
												<tbody>
												</tbody>
											</table>
										</div>
									</div>
								</div>
							</div>
						<form action="" class="ibox-content p-xl" id="approveForm">
                            <div class="row">
	                            <input type="hidden" id="eventIdApprove" value="">
									<div class="form-group">
										<div class="col-sm-3">
										<label class="detail-title">提交终审:</label>
										</div>
										<div class="col-sm-6">
										<select name="approveResult" class="form-control m-b" tabindex="2">
										 	<option value="1" selected="selected">同意</option>
										 	<option value="2">不同意</option>
										 </select>
										</div>
									</div>
                            </div>
							<br>
							<div class="row">
									<div class="form-group">
										<div class="col-sm-3">
										<label class="detail-title">审核意见:</label>
										</div>
										<div class="col-sm-6">
										<textarea class="form-control" placeholder="原因" rows="10" name="approveSuggestion"></textarea>
										</div>
									</div>
							</div>
                        </form>
					<div class="modal-footer">
						<button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
						<button type="submit" class="btn btn-primary" id="approveConfirm">确认</button>
					</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 终审人审批 -->
		<div class="modal inmodal" id="approveFinalModal" tabindex="-1" role="dialog"
			aria-hidden="true">
			<div class="modal-dialog modal-md">
				<div class="modal-content animated fadeIn">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal">
							<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
						</button>
						<h4 class="modal-title">资金配置审批</h4>
					</div>
					<div class="modal-body">
						<form action="" class="ibox-content p-xl" id="approveFinalForm">
                            <div class="row">
                            		<input type="hidden" id="eventIdApproveFinal" value="">
									<div class="form-group">
										<div class="col-sm-4 control-label">
											<label class="detail-title">是否同意配资:</label>
										</div>
										<div class="col-sm-6">
										<select name="result" class="form-control m-b" tabindex="2">
										 	<option value="1" selected="selected">同意</option>
										 	<option value="2">不同意</option>
										 </select>
										</div>
									</div>
                            </div>
							<br>
							<div class="row">
									<div class="form-group">
										<div class="col-sm-4 control-label">
										<label class="detail-title">意见:</label>
										</div>
										<div class="col-sm-6">
										<textarea class="form-control" placeholder="意见" rows="10" name="suggestion"></textarea>
										</div>
									</div>
							</div>
                        </form>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
						<button type="submit" class="btn btn-primary" id="approveFinalConfirm">确认</button>
					</div>
				</div>
			</div>
		</div>
	</div>



	<!-- Mainly scripts -->
	<script src="js/jquery-2.1.1.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
	<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script src="js/jquery.serialize-object.min.js" type="text/javascript"></script>
	<script src="js/plugins/validate/jquery.validate.min.js" type="text/javascript"></script>
	<script src="js/plugins/validate/jquery.validate.messages-zh_CN.js" type="text/javascript"></script>

	<!-- Data Tables -->
	<script src="js/plugins/dataTables/jquery.dataTables.js"></script>
	<script src="js/plugins/dataTables/dataTables.bootstrap.js"></script>
	<script src="js/plugins/dataTables/dataTables.responsive.js"></script>
	<script src="js/plugins/dataTables/dataTables.tableTools.min.js"></script>

	<!-- Custom and plugin javascript -->
	<script src="js/inspinia.js"></script>
	<script src="js/plugins/pace/pace.min.js"></script>
	<script src="js/plugins/jquery-ui/jquery-ui.min.js"></script>
	<script src="js/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>

	<!-- Page-Level Scripts -->
	<script src="js/jquery.tmpl.min.js"></script>
	<script src="js/asset/asset-module.js?v=${jsVersion}"></script>
	<script>
		$(document).ready(function() {
			AssetModule.init();
		});
	</script>

</body>

</html>
